home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!ues5.cern.ch
- From: Dan Pop <Dan.Pop@cern.ch>
- Newsgroups: comp.lang.c
- Subject: Re: What the heck is ...?
- Date: Mon, 12 Feb 1996 14:19:43 +0100
- Organization: CERN European Lab for Particle Physics
- Message-ID: <9602121319.AA28863@ues5.cern.ch>
- References: <sconi-1102961642580001@ip-24.newportnet.net> <311eb63e.1004560@usenet.interramp.com>
- X-NNTP-Posting-Host: ues5.cern.ch
- X-Newsreader: NN version 6.5.0 #7 (NOV)
- X-Mail2News-Path: mail1.cern.ch!ues5.cern.ch
-
- tandemino@interramp.com (Joe Peterson) writes:
-
- >The elipsis indicates that the function has a variable number of
- >arguments from that position on. The compiler merely pushes the
- >actual parameters onto the stack.
-
- It does more than this. The arguments suffer the default argument
- promotions before being passed to the function. OTOH, it is your
- responsibilty to cast NULL (or 0) to the appropriate pointer type when
- the corresponding argument is part of the variable argument list.
-
- >It is the responsibility of the
- >called function to parse those values on the stack, using the
- >'varargs' constructs.
-
- The 'varargs' constructs are obsolete. The standard method is to use the
- macros defined in <stdarg.h>.
-
- Dan
- --
- Dan Pop
- CERN, CN Division
- Email: danpop@mail.cern.ch
- Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
-